

#import <Foundation/Foundation.h>
/**
 *  定义请求成功的block
 */
typedef void(^successBlock)(id responseBody);
/**
 *  定义请求失败的block
 */
typedef void(^failureBlock)(NSError *error);


@interface NetWork : NSObject


+(void)sendGetUrl:(NSString *)url withParams:(NSDictionary *)params success:(successBlock) success failure:(failureBlock)failure;
+(void)loadCitysWithKeyWord:(NSString *)keyword subdistrict:(NSInteger)subdistrict success:(successBlock) success failure:(failureBlock)failure;;

+(void)uploadImageWithImage:(UIImage *)image success:(successBlock) success failure:(failureBlock)failure;

@end
